package com.nuctech.hardwaredriver.util;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by 心魂free on 2019/10/30.
 * <p>
 * 关闭类
 */

public class CloseUtil {

    public static void closeQuietly(Closeable closeable) {

        if (closeable != null) {

            try {

                closeable.close();

            } catch (IOException e) {

                e.printStackTrace();
            }
        }
    }
}
